.class public Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;
.super Landroid/app/Dialog;
.source "DetailContextMenu.java"


# instance fields
.field private mAdapter:Landroid/widget/ArrayAdapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/widget/ArrayAdapter",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mItems:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mListView:Landroid/widget/ListView;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 23
    .local p2, "items":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    const v0, 0x7f0d001a

    invoke-direct {p0, p1, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 24
    iput-object p2, p0, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->mItems:Ljava/util/List;

    .line 25
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->init(Landroid/content/Context;)V

    .line 26
    return-void
.end method

.method private init(Landroid/content/Context;)V
    .registers 7
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 29
    const v1, 0x7f030041

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->setContentView(I)V

    .line 30
    const v1, 0x7f0a002b

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->mListView:Landroid/widget/ListView;

    .line 31
    new-instance v1, Landroid/widget/ArrayAdapter;

    const v2, 0x7f030042

    const v3, 0x7f0a0034

    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->mItems:Ljava/util/List;

    invoke-direct {v1, p1, v2, v3, v4}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;IILjava/util/List;)V

    iput-object v1, p0, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->mAdapter:Landroid/widget/ArrayAdapter;

    .line 32
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->mListView:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->mAdapter:Landroid/widget/ArrayAdapter;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 34
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    .line 35
    .local v0, "winParams":Landroid/view/WindowManager$LayoutParams;
    const/high16 v1, 0x3f000000

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    .line 36
    const/16 v1, 0x11

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 37
    iget v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    or-int/lit8 v1, v1, 0x2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    .line 38
    return-void
.end method


# virtual methods
.method public setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V
    .registers 3
    .param p1, "listener"    # Landroid/widget/AdapterView$OnItemClickListener;

    .prologue
    .line 41
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->mListView:Landroid/widget/ListView;

    invoke-virtual {v0, p1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 42
    return-void
.end method
